CMAKE_MINIMUM_REQUIRED(VERSION 3.17)

PROJECT(DEVELOOP_QT5 CXX)
SET(CMAKE_CXX_EXTENSIONS OFF)

FIND_LIBRARY(LIB_QT_CORE NAMES Qt5Core PATHS ${CMAKE_CURRENT_SOURCE_DIR}/windows/lib NO_DEFAULT_PATH)
FIND_LIBRARY(LIB_QT_GUI NAMES Qt5Gui PATHS ${CMAKE_CURRENT_SOURCE_DIR}/windows/lib NO_DEFAULT_PATH)
FIND_LIBRARY(LIB_QT_WIDGETS NAMES Qt5Widgets PATHS ${CMAKE_CURRENT_SOURCE_DIR}/windows/lib NO_DEFAULT_PATH)
FIND_LIBRARY(LIB_QT_MULTIMEDIA NAMES Qt5Multimedia PATHS ${CMAKE_CURRENT_SOURCE_DIR}/windows/lib NO_DEFAULT_PATH)

ADD_LIBRARY(DEVELOOP_QT5 INTERFACE)
ADD_LIBRARY(LIBRARIES::DEVELOOP_QT5 ALIAS DEVELOOP_QT5)
TARGET_INCLUDE_DIRECTORIES(DEVELOOP_QT5 INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/windows/include")
TARGET_COMPILE_DEFINITIONS(DEVELOOP_QT5 INTERFACE
        QT_CORE_LIB
        QT_GUI_LIB
        QT_WIDGETS_LIB)
TARGET_LINK_LIBRARIES(DEVELOOP_QT5 INTERFACE
        ${LIB_QT_CORE}
        ${LIB_QT_GUI}
        ${LIB_QT_WIDGETS}
        ${LIB_QT_MULTIMEDIA})